package com.snailvr.tv.network.service;

import com.snailvr.tv.network.entity.ChannelInfoResponBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.Query;


/**
 * Created by Administrator on 2016/8/31.
 */
public interface ChannelInfoService {
    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("channel/info")
    Call<ChannelInfoResponBean> getChannelInfo(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("id") int channel_id
    );

    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("channel/default")
    Call<ChannelInfoResponBean> getDefaultInfo(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("tag") String tag
    );

    @Headers({"Accept-version: 2.0.1","Content-Type: application/json"})
    @GET("channel/switch")
    Call<ChannelInfoResponBean> switchChannel(
            @Header("sessionid") String sessionid,
            @Header("token") String token,
            @Query("id") int channel_id,
            @Query("type") String type
    );




}
